<?php
/**
 * AppController is Controller for authentication loged-in
 */
class AppController extends Controller
{
	protected function beforeAction($action){
	
		$authentication = true;
	
		if(!$authentication){
			header('Location: '.$this->createUrl('/login'));
			return false;
		}
		return true;
	}
}